package sampler;

import org.apache.jmeter.config.Arguments;
import org.apache.jmeter.protocol.java.sampler.JavaSamplerClient;
import org.apache.jmeter.protocol.java.sampler.JavaSamplerContext;
import org.apache.jmeter.samplers.SampleResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class MySamplerTemplate implements JavaSamplerClient {

	private final Logger log = LoggerFactory.getLogger(MySamplerTemplate.class);

	@Override
	public Arguments getDefaultParameters() {

		Arguments params = new Arguments();

		return params;
	}

	@Override
	public void setupTest(JavaSamplerContext context) {

		log.info("setupTest");
	}

	@Override
	public SampleResult runTest(JavaSamplerContext context) {

		SampleResult sampleResult = new SampleResult();
		sampleResult.sampleStart();

		sampleResult.sampleEnd();
		sampleResult.setSuccessful(true);

		return sampleResult;
	}

	@Override
	public void teardownTest(JavaSamplerContext context) {
		// TODO Auto-generated method stub

	}
}
